<div>
  <h2 class="mat-dialog-title">新建博客</h2>
  <mat-dialog-content>
    <p>
      <mat-form-field class="example-full-width">
        <input matInput [(ngModel)]="data.dir" placeholder="分类">
      </mat-form-field>
    </p>
    <p>
      <mat-form-field class="example-full-width">
        <input matInput [(ngModel)]="data.file" placeholder="名称">
      </mat-form-field>
    </p>
  </mat-dialog-content>
  <mat-dialog-actions>
    <button id="doalog-btn" mat-raised-button [mat-dialog-close]="data" color="primary">确定</button>
  </mat-dialog-actions>
</div>
